<?php

/**
 * modelo actions.
 *
 * @package    kernel
 * @subpackage modelo
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
 */
class modeloActions extends automodeloActions
{

	public function executeObtenerVariablesContrato()
	{
		$id = $this->getRequestParameter('id', null);
		$this->variables = array();
		if($id !== null)
		{
			$modelo = ContratacionModeloPeer::retrieveByPk($id);
			if($modelo)
			{

				$variables_modelo = $modelo->getContratacionModeloAVariablesJoinContratacionVariable();
				foreach($variables_modelo as $vm)
				{
					$this->variables[] = $vm->getContratacionVariable();
				}

			}

		}
		else
			return sfView::NONE;
	}
}
